package com.bt.table.ppt;

/**
 * Bis_m_itemId entity. @author MyEclipse Persistence Tools
 */

public class Bis_m_itemId implements java.io.Serializable {

	// Fields

	private String tool_id_fk;
	private String rep_unit_fk;
	private String data_pat_fk;
	private String mes_id_fk;
	private String data_id;

	// Constructors

	/** default constructor */
	public Bis_m_itemId() {
	}

	/** full constructor */
	public Bis_m_itemId(String tool_id_fk, String rep_unit_fk,
			String data_pat_fk, String mes_id_fk, String data_id) {
		this.tool_id_fk = tool_id_fk;
		this.rep_unit_fk = rep_unit_fk;
		this.data_pat_fk = data_pat_fk;
		this.mes_id_fk = mes_id_fk;
		this.data_id = data_id;
	}

	// Property accessors

	public String getTool_id_fk() {
		return this.tool_id_fk;
	}

	public void setTool_id_fk(String tool_id_fk) {
		this.tool_id_fk = tool_id_fk;
	}

	public String getRep_unit_fk() {
		return this.rep_unit_fk;
	}

	public void setRep_unit_fk(String rep_unit_fk) {
		this.rep_unit_fk = rep_unit_fk;
	}

	public String getData_pat_fk() {
		return this.data_pat_fk;
	}

	public void setData_pat_fk(String data_pat_fk) {
		this.data_pat_fk = data_pat_fk;
	}

	public String getMes_id_fk() {
		return this.mes_id_fk;
	}

	public void setMes_id_fk(String mes_id_fk) {
		this.mes_id_fk = mes_id_fk;
	}

	public String getData_id() {
		return this.data_id;
	}

	public void setData_id(String data_id) {
		this.data_id = data_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bis_m_itemId))
			return false;
		Bis_m_itemId castOther = (Bis_m_itemId) other;

		return ((this.getTool_id_fk() == castOther.getTool_id_fk()) || (this
				.getTool_id_fk() != null && castOther.getTool_id_fk() != null && this
				.getTool_id_fk().equals(castOther.getTool_id_fk())))
				&& ((this.getRep_unit_fk() == castOther.getRep_unit_fk()) || (this
						.getRep_unit_fk() != null
						&& castOther.getRep_unit_fk() != null && this
						.getRep_unit_fk().equals(castOther.getRep_unit_fk())))
				&& ((this.getData_pat_fk() == castOther.getData_pat_fk()) || (this
						.getData_pat_fk() != null
						&& castOther.getData_pat_fk() != null && this
						.getData_pat_fk().equals(castOther.getData_pat_fk())))
				&& ((this.getMes_id_fk() == castOther.getMes_id_fk()) || (this
						.getMes_id_fk() != null
						&& castOther.getMes_id_fk() != null && this
						.getMes_id_fk().equals(castOther.getMes_id_fk())))
				&& ((this.getData_id() == castOther.getData_id()) || (this
						.getData_id() != null && castOther.getData_id() != null && this
						.getData_id().equals(castOther.getData_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTool_id_fk() == null ? 0 : this.getTool_id_fk()
						.hashCode());
		result = 37
				* result
				+ (getRep_unit_fk() == null ? 0 : this.getRep_unit_fk()
						.hashCode());
		result = 37
				* result
				+ (getData_pat_fk() == null ? 0 : this.getData_pat_fk()
						.hashCode());
		result = 37 * result
				+ (getMes_id_fk() == null ? 0 : this.getMes_id_fk().hashCode());
		result = 37 * result
				+ (getData_id() == null ? 0 : this.getData_id().hashCode());
		return result;
	}

	@Override
	public String toString() {
		return "Bis_m_itemId [tool_id_fk=" + tool_id_fk + ", rep_unit_fk="
				+ rep_unit_fk + ", data_pat_fk=" + data_pat_fk + ", mes_id_fk="
				+ mes_id_fk + ", data_id=" + data_id + "]";
	}

}